package proj.pt.web;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class LeftNavButton implements NavButton {
	private String link;
	private String stringId;
	private String displayName;
	
	private List roles = new ArrayList();
	private Map rolesInMap = new HashMap();
	
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public String getStringId() {
		return stringId;
	}
	public void setStringId(String stringId) {
		this.stringId = stringId;
	}
	public List getRoles() {
		return roles;
	}
	public void setRoles(List roles) {
		this.roles = roles;
	}
	public Map getRolesInMap() {
		if(roles != null && rolesInMap != null && rolesInMap.isEmpty()){
			for(int intx = 0; intx < roles.size(); intx++){
				rolesInMap.put(roles.get(intx), "");
			} //end for
		} //end if
		return rolesInMap;
	}
	
}
